<template>
  <div>
    <van-button type="primary" size="mini" plain to="/show" @click=handleClick(myitem)>
      <slot></slot>
    </van-button>
  </div>
</template>
<script>
export default {
props:["myitem"],
methods:{
  handleClick(myitem){
    this.$store.commit('changeCityName',myitem)
       this.$router.back()
  }
}
}

</script>
<style lang="scss" scoped>
.van-button--plain {
  margin: 10px 32px 0 0;
  color: black;
}
</style>
